<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>laravel--轻松学习-@yield('title')</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css" media="screen">

.header {

        width:1000px;

        height:150px;

        margin:0 auto;

        background: #f5f5f5;

        border:1px solid #ddd;

    }



    .main {

        width: 1000px;

        height: 300px;

        margin: 0 auto;

        margin-top: 15px;

        clear: both;

    }
	.main .sidebar {

        float:left;

        width:20%;

        height:inherit;

        background: #f5f5f5;

        border:1px solid #ddd;

    }



    .main .content {

        float:right;

        width:75%;

        height:inherit;

        background: #f5f5f5;

        border:1px solid #ddd;

    }
    .footer {

        width:1000px;

        height:150px;

        margin:0 auto;

        margin-top: 15px;

        background: #f5f5f5;

        border:1px solid #ddd;

    }
</style>
</head>
<body>
<div class='header'>
    {{--视图片断（sections）--}}
    @section('header')
        头部
    @show
</div>
<div class='main'>
<div class='sidebar'>
    @section('sidebar')
    侧边栏
    @show
</div>
<div class='content'>
    {{--@yield 指令是用来展示某个指定 section 所代表的内容的--}}
    @yield('content','内容区域')
</div>
</div>

<div class='footer'>
    @section('footer')
        底部
    @show
</div>

</body>
</html>